require 'prawn'

class DownloadController < ApplicationController

  def download_pdf
    document = Prawn::Document.new do |p|
      p.text 'Document Name', :align => 'center'
      p.text 'Address: shanghai pudong jinggong road'
      p.text 'text end'
    end.render

    send_data(document, :type => 'application/pdf')
  end

  private
  def generate_pdf

  end
end
